<div class="panel panel-info">
    <div class="panel-heading">
        <h3 class="panel-title">日志信息</h3>
    </div>
    <div class="well">
        <form class="form-inline" role="form">
            <div class="form-group">
                <label class="control-label" for="name">类型</label>
                <input type="text" class="form-control" id="type" name="type" value="<?php echo $type?>"
                       placeholder="请输入类型">
            </div>
            <div class="form-group">
                Start Time：<input class="laydate-icon" name="start_date" id="start"  />
            </div>
            <div class="form-group">
                End Time：<input class="laydate-icon" id="end" name="end_date" />
            </div>
            <button type="submit" class="btn btn-info"> 查询</button>
        </form>
        <div class="pagination">
            <?php if(!empty($userlimit['remove'])&&$userlimit['remove']=="1"):?>
            <button type="button" class="btn btn-primary" id="remove_items">
                删除
            </button>
            <?php endif;?>
        </div>
    </div>
    <div class="panel-body">
        <table class="table table-condensed table-striped">
            <thead>
            <tr>
                <th><input type="checkbox" class="rows_check" /> </th>
                <th>编号</th>
                <th>用户名</th>
                <th>类型</th>
                <th>内容</th>
                <th>创建时间</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
                <?php if(isset($logList['rows'])):?>
                <?php foreach($logList['rows'] as $key=>$list):?>
                <tr>
                    <td><input type="checkbox" class="row_check" data-id="<?php echo $list['id'] ?>" /></td>
                    <td><?php echo $key+1 ?></td>
                    <td><?php echo $list['user_email'] ?></td>
                    <td><?php echo $list['type'] ?></td>
                    <td><?php echo $list['description'] ?></td>
                    <td><?php echo $list['createdon'] ?></td>
                    <td>
                        <?php if(!empty($userlimit['remove'])&&$userlimit['remove']=="1"):?>
                        <button type="button" class="btn btn-primary remove_item"  data-id="<?php echo $list['id'] ?>">
                            删除
                        </button>
                        <?php endif;?>
                    </td>
                </tr>
                <?php endforeach; ?>
            <?php endif;?>
            </tbody>
        </table>
        <?php if($pages>1):?>
            <div class="well well-sm" style="text-align: center"><?php echo HTML::getPageHtml($page,$pages,"/sys/user?name=".$type)?></div>
        <?php endif;?>
    </div>
</div>
